/**
 * 
 */
package com.cosina.game.tank.util;

public abstract class DirectionAdapter{
	public final Object doSwtich(Direction direction){
		if(Direction.up == direction)
			return doUp();
		else if(Direction.down == direction)
			return doDown();
		else if(Direction.left == direction)
			return doLeft();
		else if(Direction.right == direction)
			return doRight();
		else
			return null;
	}
	
	public abstract Object doUp();
	public abstract Object doDown();
	public abstract Object doLeft();
	public abstract Object doRight();
	
}